package org.example.dataStructure.linkedList;

public class TestLinkedList {
    public static void main(String[] args) {
        MyLinkedList<Integer> list = new MyLinkedList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.insert(0,4);
        System.out.println("当前剩余: "+list.size());
        System.out.println(list.toString());
        list.delete(0);
        System.out.println(list.toString());
    }
}
